package com.tsd.jxc.goods.dao;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.goods.entity.JxcCategory;
import com.tsd.jxc.goods.entity.JxcCategoryExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcCategoryMapper
 *
 * @author Hillpool
 * @date 2022/07/29 15:02:41
 */
public interface JxcCategoryMapper {

    JxcCategory selectByPrimaryKey(Long id);

    JxcCategoryExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(JxcCategory record);

    int insertSelective(JxcCategory record);

    int insertList(@Param("list") List<JxcCategoryExt> list);

    int updateByPrimaryKey(JxcCategory record);

    int updateByPrimaryKeySelective(JxcCategory record);

    int updateList(@Param("list") List<JxcCategoryExt> list);

    List<JxcCategoryExt> selectByEntity(JxcCategoryExt record);

    List<JxcCategoryExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcCategoryExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcCategoryExt> selectByParams(@Param("params") Map<String, Object> params);

    List<JxcCategoryExt> validateRepeatJxcCategory(JxcCategory record);

    List<JxcCategory> selectBySids(List<String> list);

    List<JxcCategoryExt> selectListByFullCodeList(List<String> list);

    JxcCategoryExt selectName(String owner_name);

}